﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<MethodWorx.CMS.UI.Models.CreateRootPageModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script language="javascript">
        $(document).ready(function () {
            $("#rootPageTemplateInfo").tooltip({ showURL: false, showBody: " - " });
        });
    </script>

    <h2>Create Root Page</h2>

    <p>
        This will create the root page for your website based on the root page template.
    </p>

    <%using(Html.BeginForm()){ %>
        <%=Html.Hidden("pageBasicDetails.PageTemplate", this.Model.RootPageTemplate.Id)%>
        <div class="formItem">
            <label>Root Page Template:</label>
            <div style="width:250px;float:left;padding-right:10px;"><%=Model.RootPageTemplate.Name %></div>
            <img id="rootPageTemplateInfo" style="" src="<%=Url.Content("~/Images/icons/information.png")%>" title="<%=Model.RootPageTemplate.Name %> - <%=Model.RootPageTemplate.Description %>"/>
        </div>
        <%=Html.FormTextBox("Name", "pageBasicDetails.Name", "")%>
        <%=Html.FormTextArea("Description", "pageBasicDetails.Description", "")%>
        <%=Html.FormButtons(
                (b) =>
                {
                    b.Submit("create", "Create");
                    b.Submit("cancel", "Cancel");
                }
            ) %>
    <%} %>

</asp:Content>
